import { Controller, Request, RequestMethod } from '../decorator';

// @Controller({prefix: '/hello'})   带参数  设置路由前缀
@Controller({})
class TestController {
    @Request({url: '/', method: RequestMethod.GET})
    async hello (ctx) {
        ctx.body = 'hello world!'
    }
}

module.exports = TestController;
